package com.keta.generator.vo;


public class Column {
	
	/*
	 * 数据库列的字段名
	 */
	private String name;
	
	/*
	 * 数据库列的类型
	 */
	private String sqlType;// 字段类型
	
	
	/**
	 * 是否自动增长
	 */
	private boolean isAutoIncrement;
	
	/*
	 * 数据库列的长度
	 */
	private int size;// 长度
	
	private boolean isKey;
	
	/*
	 * 列 是否允许为空
	 */
	private boolean nullable;// 是否允许空
	
	/*
	 * 列默认值
	 */
	private String defaultValue;// 默认值
	
	/**
	 * 列 精度
	 */
	private int digits;
	
	/*
	 * 列注释
	 */
	private String comment;
	
	
	/**
	 * javaBean 字段类型
	 */
	private String javaType;
	
	/*
	 * javaBean 字段名
	 */
	private String fieldName;
	
	/*
	 * javaBean 字段Set方法名
	 */
	private String setMethod;
	
	/*
	 * javaBean 字段get方法名
	 */
	private String getMethod;// get 方法名
	
	/*
	 * 列属于哪个表
	 */
	private Table table;
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSqlType() {
		return sqlType;
	}

	public void setSqlType(String sqlType) {
		this.sqlType = sqlType;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}
	
	
	public boolean getNullable() {
		return nullable;
	}

	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public int getDigits() {
		return digits;
	}

	public void setDigits(int digits) {
		this.digits = digits;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getJavaType() {
		return javaType;
	}

	public void setJavaType(String javaType) {
		this.javaType = javaType;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getSetMethod() {
		return setMethod;
	}

	public void setSetMethod(String setMethod) {
		this.setMethod = setMethod;
	}

	public String getGetMethod() {
		return getMethod;
	}

	public void setGetMethod(String getMethod) {
		this.getMethod = getMethod;
	}

	public Table getTable() {
		return table;
	}

	public void setTable(Table table) {
		this.table = table;
	}

	public boolean getIsAutoIncrement() {
		return isAutoIncrement;
	}

	public void setIsAutoIncrement(boolean isAutoIncrement) {
		this.isAutoIncrement = isAutoIncrement;
	}

	
	public boolean getIsKey() {
		return isKey;
	}

	public void setIsKey(boolean isKey) {
		this.isKey = isKey;
	}
	
	
	
}
